package com.xyq.job.domain.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xyq.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("tb_user_submit")
public class UserSubmit extends BaseEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long submitId ;

    private Long userId ;

    private Long questionId ;

    private Long examId ;

    private Integer programType ;

    private Integer pass ;

    private String userCode ;

    private Integer score ;

    private String exeMessage ;

    private String caseJudgeRes ; // 用例运行结果

}
